package com.songlanyun.modules.pointgiveaway.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import lombok.Data;

/**
 * 积分转赠记录
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2022-09-26 16:50:23
 */
@Data
@TableName("yxt_point_give_away")
public class PointGiveAwayEntity extends RootEntity<Long,PointGiveAwayEntity> implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Long id;
	/**
	 * 转赠人id
	 */
	private Long giveUserId;
	/**
	 * 转赠人真实姓名
	 */
	private String giveRealName;
	/**
	 * 转赠人手机号
	 */
	private String giveMobile;
	/**
	 * 被赠与人id
	 */
	private Long acceptUserId;
	/**
	 * 被赠与人真实姓名
	 */
	private String acceptRealName;
	/**
	 * 被赠与人手机号
	 */
	private String acceptMobile;
	/**
	 * 转赠的积分
	 */
	private BigDecimal givePoint;
	/**
	 * 转赚的费用
	 */
	private BigDecimal handlingFee;
	/**
	 * 实际转赚的积分
	 */
	private BigDecimal facePoint;
	/**
	 *
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@Override
	public Long getIdentity() {
		return getId();
	}
}
